80382a2c: 27 bd ff c8  ADDIU sp, sp, 0xffffffc8 (-56)
80382a30: af bf 00 14  SW ra, sp, 0x14 (20)
80382a34: af a4 00 38  SW a0, sp, 0x38 (56)                    [sp + 0x38] === arg1
80382a38: af a5 00 3c  SW a1, sp, 0x3c (60)                    [sp + 0x3c] === arg2

80382a3c: af a0 00 18  SW r0, sp, 0x18 (24)

80382a40: 8f ae 00 38  LW t6, sp, 0x38 (56)
80382a44: 85 c4 00 0a  LH a0, t6, 0xa (10)
80382a48: 85 c5 00 10  LH a1, t6, 0x10 (16)
80382a4c: 0c 0e 0a 0f  JAL 0x8038283c (-2143803332)        [sp + 0x2e] = 0x8038283c(arg1->pts[0][0], arg1->pts[1][0], arg1->pts[2][0]);
80382a50: 85 c6 00 16  LH a2, t6, 0x16 (22)
80382a54: a7 a2 00 2e  SH v0, sp, 0x2e (46)

80382a58: 8f af 00 38  LW t7, sp, 0x38 (56)
80382a5c: 85 e4 00 0e  LH a0, t7, 0xe (14)
80382a60: 85 e5 00 14  LH a1, t7, 0x14 (20)
80382a64: 0c 0e 0a 0f  JAL 0x8038283c (-2143803332)        [sp + 0x2c] = 0x8038283c(arg1->pts[0][2], arg1->pts[1][2], arg1->pts[2][2]);
80382a68: 85 e6 00 1a  LH a2, t7, 0x1a (26)
80382a6c: a7 a2 00 2c  SH v0, sp, 0x2c (44)

80382a70: 8f b8 00 38  LW t8, sp, 0x38 (56)
80382a74: 87 04 00 0a  LH a0, t8, 0xa (10)
80382a78: 87 05 00 10  LH a1, t8, 0x10 (16)
80382a7c: 0c 0e 0a 27  JAL 0x8038289c (-2143803236)        [sp + 0x2a] = 0x8038289c(arg1->pts[0][0], arg1->pts[1][0], arg1->pts[2][0]);
80382a80: 87 06 00 16  LH a2, t8, 0x16 (22)
80382a84: a7 a2 00 2a  SH v0, sp, 0x2a (42)

80382a88: 8f b9 00 38  LW t9, sp, 0x38 (56)
80382a8c: 87 24 00 0e  LH a0, t9, 0xe (14)
80382a90: 87 25 00 14  LH a1, t9, 0x14 (20)
80382a94: 0c 0e 0a 27  JAL 0x8038289c (-2143803236)        [sp + 0x28] = 0x8038289c(arg1->pts[0][2], arg1->pts[1][2], arg1->pts[2][2]);
80382a98: 87 26 00 1a  LH a2, t9, 0x1a (26)
80382a9c: a7 a2 00 28  SH v0, sp, 0x28 (40)

80382aa0: 0c 0e 0a 3f  JAL 0x803828fc (-2143803140)        [sp + 0x26] = 0x803828fc([sp + 0x2e]);
80382aa4: 87 a4 00 2e  LH a0, sp, 0x2e (46)
80382aa8: a7 a2 00 26  SH v0, sp, 0x26 (38)

80382aac: 0c 0e 0a 64  JAL 0x80382990 (-2143802992)        [sp + 0x22] = 0x80382990([sp + 0x2a]);
80382ab0: 87 a4 00 2a  LH a0, sp, 0x2a (42)
80382ab4: a7 a2 00 22  SH v0, sp, 0x22 (34)

80382ab8: 0c 0e 0a 3f  JAL 0x803828fc (-2143803140)        [sp + 0x24] = 0x803828fc([sp + 0x2c]);
80382abc: 87 a4 00 2c  LH a0, sp, 0x2c (44)
80382ac0: a7 a2 00 24  SH v0, sp, 0x24 (36)

80382ac4: 0c 0e 0a 64  JAL 0x80382990 (-2143802992)        [sp + 0x20] = 0x80382990([sp + 0x28]);
80382ac8: 87 a4 00 28  LH a0, sp, 0x28 (40)
80382acc: a7 a2 00 20  SH v0, sp, 0x20 (32)

80382ad0: 87 a8 00 24  LH t0, sp, 0x24 (36)
80382ad4: 87 a9 00 20  LH t1, sp, 0x20 (32)
80382ad8: a7 a8 00 1e  SH t0, sp, 0x1e (30)
80382adc: 01 28 08 2a  SLT at, t1, t0
80382ae0: 14 20 00 1c  BNE at, r0, 0x80382b54 (pc + 0x70)  if ([sp + 0x20] < ([sp + 0x1e] = [sp + 0x24])) goto 0x80382b54;
80382ae4: 00 00 00 00  NOP

*
80382ae8: 87 aa 00 26  LH t2, sp, 0x26 (38)
80382aec: 87 ab 00 22  LH t3, sp, 0x22 (34)
80382af0: a7 aa 00 1c  SH t2, sp, 0x1c (28)
80382af4: 01 6a 08 2a  SLT at, t3, t2
80382af8: 14 20 00 0e  BNE at, r0, 0x80382b34 (pc + 0x38)  if ([sp + 0x22] < ([sp + 0x1c] = [sp + 0x26])) goto 0x80382b34;
80382afc: 00 00 00 00  NOP

*
80382b00: 8f a4 00 3c  LW a0, sp, 0x3c (60)
80382b04: 87 a5 00 1c  LH a1, sp, 0x1c (28)
80382b08: 87 a6 00 1e  LH a2, sp, 0x1e (30)
80382b0c: 0c 0e 09 7f  JAL 0x803825fc (-2143803908)        0x803825fc(arg2, [sp + 0x1c], [sp + 0x1e], arg1);
80382b10: 8f a7 00 38  LW a3, sp, 0x38 (56)

80382b14: 87 ac 00 1c  LH t4, sp, 0x1c (28)
80382b18: 87 b8 00 22  LH t8, sp, 0x22 (34)
80382b1c: 25 8d 00 01  ADDIU t5, t4, 0x1 (1)
80382b20: 00 0d 74 00  SLL t6, t5, 0x10 (16)
80382b24: 00 0e 7c 03  SRA t7, t6, 0x10 (16)
80382b28: 03 0f 08 2a  SLT at, t8, t7
80382b2c: 10 20 ff f4  BEQ r0, at, 0x80382b00 (pc - 0x30)  if ([sp + 0x22] >= [sp + 0x1c]++) goto 0x80382b00;
80382b30: a7 ad 00 1c  SH t5, sp, 0x1c (28)

*
80382b34: 87 b9 00 1e  LH t9, sp, 0x1e (30)
80382b38: 87 ab 00 20  LH t3, sp, 0x20 (32)
80382b3c: 27 28 00 01  ADDIU t0, t9, 0x1 (1)
80382b40: 00 08 4c 00  SLL t1, t0, 0x10 (16)
80382b44: 00 09 54 03  SRA t2, t1, 0x10 (16)
80382b48: 01 6a 08 2a  SLT at, t3, t2
80382b4c: 10 20 ff e6  BEQ r0, at, 0x80382ae8 (pc - 0x68)  if ([sp + 0x20] >= [sp + 0x1e]++) goto 0x80382ae8;
80382b50: a7 a8 00 1e  SH t0, sp, 0x1e (30)

*
80382b54: 10 00 00 01  BEQ r0, r0, 0x80382b5c (pc + 0x4)
80382b58: 00 00 00 00  NOP
80382b5c: 8f bf 00 14  LW ra, sp, 0x14 (20)
80382b60: 27 bd 00 38  ADDIU sp, sp, 0x38 (56)
80382b64: 03 e0 00 08  JR ra
80382b68: 00 00 00 00  NOP


[sp + 0x2e] = 0x8038283c(arg1->pts[0][0], arg1->pts[1][0], arg1->pts[2][0]);
[sp + 0x2c] = 0x8038283c(arg1->pts[0][2], arg1->pts[1][2], arg1->pts[2][2]);
[sp + 0x2a] = 0x8038289c(arg1->pts[0][0], arg1->pts[1][0], arg1->pts[2][0]);
[sp + 0x28] = 0x8038289c(arg1->pts[0][2], arg1->pts[1][2], arg1->pts[2][2]);
[sp + 0x26] = 0x803828fc([sp + 0x2e]);
[sp + 0x22] = 0x80382990([sp + 0x2a]);
[sp + 0x24] = 0x803828fc([sp + 0x2c]);
[sp + 0x20] = 0x80382990([sp + 0x28]);
if ([sp + 0x20] < ([sp + 0x1e] = [sp + 0x24])) goto 0x80382b54;
80382ae8:
if ([sp + 0x22] < ([sp + 0x1c] = [sp + 0x26])) goto 0x80382b34;
80382b00:
0x803825fc(arg2, [sp + 0x1c], [sp + 0x1e], arg1);
if ([sp + 0x22] >= [sp + 0x1c]++) goto 0x80382b00;
80382b34:
if ([sp + 0x20] >= [sp + 0x1e]++) goto 0x80382ae8;
80382b54:





[sp + 0x2e] = 0x8038283c(arg1->pts[0][0], arg1->pts[1][0], arg1->pts[2][0]); //min3
[sp + 0x2c] = 0x8038283c(arg1->pts[0][2], arg1->pts[1][2], arg1->pts[2][2]);
[sp + 0x2a] = 0x8038289c(arg1->pts[0][0], arg1->pts[1][0], arg1->pts[2][0]); //max3
[sp + 0x28] = 0x8038289c(arg1->pts[0][2], arg1->pts[1][2], arg1->pts[2][2]);
[sp + 0x26] = 0x803828fc([sp + 0x2e]);
[sp + 0x22] = 0x80382990([sp + 0x2a]);
[sp + 0x24] = 0x803828fc([sp + 0x2c]);
[sp + 0x20] = 0x80382990([sp + 0x28]);
if ([sp + 0x20] < ([sp + 0x1e] = [sp + 0x24])) goto 0x80382b54;
80382ae8:
    if ([sp + 0x1c] = [sp + 0x26]; [sp + 0x22] >= [sp + 0x1c]; [sp + 0x1c]++) {
        0x803825fc(arg2, [sp + 0x1c], [sp + 0x1e], arg1);
    }
if ([sp + 0x20] >= [sp + 0x1e]++) goto 0x80382ae8;
80382b54:
